package pushtest.mobike.com.mtpush

import android.graphics.Color
import android.hardware.Camera
import android.os.Build
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.annotation.RequiresApi
import android.view.View

class QrScannerActivity : BaseThemeActivity()
//  , Camera.PreviewCallback, DecodeCallback,
//  CameraPreviewViewController.Callback
{


  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    if (lightStatusBarSupported) {
      val decorView = window.decorView
      val option = (View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
          or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
          or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
          or View.SYSTEM_UI_FLAG_LAYOUT_STABLE)
      decorView.systemUiVisibility = option
      setStatusBarTransparent()
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        window.navigationBarColor = Color.TRANSPARENT
      }
    }
    setContentView(R.layout.activity_qr_scanner)
  }


}
